package com.futureway.test.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.futureway.test.dao.UserCourseRespository;
import com.futureway.test.entity.UserCourse;
import com.futureway.test.service.UserCourseService;

@Service
public class UserCourseServiceImpl implements UserCourseService {

	@Autowired
	private UserCourseRespository userCourseRespository;

	@Override
	public boolean save(UserCourse userCourse) {
		userCourseRespository.save(userCourse);
		return true;
	}

	@Override
	public boolean delete(UserCourse userCourse) {
		userCourseRespository.delete(userCourse);
		return true;
	}

}
